using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace HRM.Models.Mapping
{
    public class dm_tk_HDHocThuatMap : EntityTypeConfiguration<dm_tk_HDHocThuat>
    {
        public dm_tk_HDHocThuatMap()
        {
            // Primary Key
            this.HasKey(t => t.Id);

            // Properties
            this.Property(t => t.MaTKHDHT)
                .IsRequired()
                .HasMaxLength(10);

            this.Property(t => t.TenTKHDHT)
                .HasMaxLength(200);

            this.Property(t => t.HDKhac)
                .HasMaxLength(200);

            // Table & Column Mappings
            this.ToTable("dm_tk_HDHocThuat");
            this.Property(t => t.Id).HasColumnName("Id");
            this.Property(t => t.MaTKHDHT).HasColumnName("MaTKHDHT");
            this.Property(t => t.TenTKHDHT).HasColumnName("TenTKHDHT");
            this.Property(t => t.TrangThai).HasColumnName("TrangThai");
            this.Property(t => t.HDKhac).HasColumnName("HDKhac");
        }
    }
}
